// 频道相关请求模块
import request from '../utils/quest'

// 导出搜索建议
export const searchSuggest = (data) => {
  return request.get('/v1_0/suggestion', {
    params: {
      q: data
    }
  })
}

// 导出搜索结果api
export const searchResult = (data) => {
  return request.get('/v1_0/search', {
    params: data
  })
}

// 导入搜索历史api
export const getSearchHistory = () => {
  return request.get('/v1_0/search/histories')
}

// 导入删除历史记入api
export const deleteHistory = () => {
  return request.delete('/v1_0/search/histories')
}
